package appapi.dao;

import appapi.Request.record.SceneReq;
import appapi.Vo.ScenePageVo;
import appapi.Vo.brider.SceneDetailVo;
import appapi.dto.bridge.SceneCheckDto;
import appapi.entity.bridge.SceneEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author dhq
 * @date 2023/9/11  12:26
 * @version 1.0
 */
public interface SceneMapper extends BaseMapper<SceneEntity> {
    int deleteByPrimaryKey(Long sceneId);

    int insert(SceneEntity record);

    int insertSelective(SceneEntity record);

    SceneEntity selectByPrimaryKey(Long sceneId);

    int updateByPrimaryKeySelective(SceneEntity record);

    int updateByPrimaryKey(SceneEntity record);

    /**
     * 场景列表
     * @param sceneReq
     * @return
     */
     List<ScenePageVo> getSecList(@Param("req") SceneReq sceneReq);

     SceneDetailVo getSceneDetail(@Param("sceneId") Long sceneId);

    /**
     * 删除场景信息，
     * @param secId
     * @return
     */
//    Integer deleteSceneById(Long secId);
    int count(Long secId);


    int countSceneNo(@Param("sceneNo") String sceneNo);

    List<SceneCheckDto> selectSceneCheckListByOrgaId(@Param("orgaId") Long orgaId);

}